package cn.cs.service;


import cn.cs.common.Page;
import cn.cs.pojo.AppOrderConcelcause;
import cn.cs.pojo.FaultType;
import cn.cs.pojo.ServiceType;

import java.util.List;
import java.util.Map;

public interface FaultTypeService {

    public List<AppOrderConcelcause> getConcelcause()throws Exception;

    public List<ServiceType> getFaultCategory()throws Exception;

    public List<FaultType> getTypeTree();

    public List<FaultType> getFaultType();

    public List<FaultType> getFaultTypeTree();

    public List<Map<String,Object>> getFaultTypeByPid(String id);

    public List<FaultType> getTwoFaultCategory(String level)throws Exception;

    public List<Map<String,Object>> getFaultTypeById(String parentId)throws Exception;

    public List<Map<String,Object>> getFaultTypeByParentId(String parentId)throws Exception;

    public List<FaultType> getFaultTypeListByMap(Map<String, Object> param)throws Exception;

    public Integer getFaultTypeCountByMap(Map<String, Object> param)throws Exception;

    public Integer addFaultType(FaultType faultType)throws Exception;

    public Integer modifyFaultType(FaultType faultType)throws Exception;

    public Integer deleteFaultTypeById(String id)throws Exception;

    public Integer deleteServiceTypeById(String id)throws Exception;

    public Page<FaultType> queryFaultTypePageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize)throws Exception;

    public Page<ServiceType> queryServiceTypePageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize)throws Exception;

    public Integer addServiceType(ServiceType serviceType)throws Exception;

    public Integer modifyServiceType(ServiceType serviceType)throws Exception;

    public FaultType getFaultTypeByIdOnlyOne(String id)throws Exception;
}
